package com.eight.controller;

import com.eight.annotation.OperateLog;
import com.eight.enums.BussinessType;
import com.eight.service.OperateLogService;
import com.eight.vo.ComResult;
import com.eight.vo.OperateLogVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

/**
 * @Description: TODO
 * @Author: Van.Planifolia
 * @CreateTime: 2023-03-01  15:04
 * @Version: 1.0
 */
@Controller
public class OperateLogController {

    @Resource
    private OperateLogService operateLogService;

    /**
     * 条件查询并且分页
     *
     * @param operateLogVo 查询条件
     * @param pageIndex    当前页
     * @param pageSize     野种数据条数
     * @return 相应前端数据
     */
    @PostMapping("selectAllOperateLog/{pageIndex}/{pageSize}")
    public ComResult selectAllOperatelog(@RequestBody OperateLogVo operateLogVo, @PathVariable Integer pageIndex, @PathVariable Integer pageSize) {
        return operateLogService.selectAllOperatelog(operateLogVo, pageIndex, pageSize);
    }

}
